package chixing.day10.singleton;

/**
 * 饿汉单例
 */
public class A {
    private static A a = new A();

    public A() {
    }

    public static A getInstance(){
        return a;
    }

    public static void main(String[] args) {
        A.getInstance();
    }
}
